﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace usedcartrade.Models
{
    public class UserDetails
    {
        [DisplayName("用户名")]
        [StringLength(7,MinimumLength =2,ErrorMessage ="UserName length should be between 2 and 7")]
        public string UserName { get; set; }
        [DisplayName("密码")]
        public string PassWord { get; set; }
        public string NickName { get; set; }
        public string Email { get; set; }
        public string City { get; set; }
        public string Phone { get; set; }
        public int userlevel { get; set; }
    }
}
